projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc2cc9
)
(Fcall_process): Remove /: from program name.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 24 Aug 2002 03:14:32 +0000
(
03:14
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 24 Aug 2002 03:14:32 +0000
(
03:14
+0000)
src/callproc.c
patch
|
blob
|
history
diff --git
a/src/callproc.c
b/src/callproc.c
index 5476be065370c433388c48270702dc17f027dc7a..d1e62de07053d3950d7499f0826f23de1642ef17 100644
(file)
--- a/
src/callproc.c
+++ b/
src/callproc.c
@@
-389,6
+389,13
@@
usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
emacs_close (filefd);
report_file_error ("Searching for program", Fcons (args[0], Qnil));
}
+
+ /* If program file name starts with /: for quoting a magic name,
+ discard that. */
+ if (SBYTES (path) > 2 && SREF (path, 0) == '/'
+ && SREF (path, 1) == ':')
+ path = Fsubstring (path, make_number (2), Qnil);
+
new_argv[0] = SDATA (path);
if (nargs > 4)
{